<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/' , function(){
    return view('welcome');
});

Route::get('/test' , 'CommonController@test');

Route::get('/pre' , 'CommonController@pre');

//登录
Route::post('/login' , 'CommonController@login');

//token验活
Route::post('/verify' , 'CommonController@verify');

//个人介绍
Route::post('/intro' , 'CommonController@intro');

//搜索图书
Route::post('/book/search' , 'CommonController@search');

//图书详情
Route::post('/book/detail' , 'CommonController@detail');

//相关借阅图书
Route::post('/book/related' , 'CommonController@related');

//当前在借图书
Route::post('/rent' , 'CommonController@inRentBook');

//历史借阅图书
Route::post('/history' , 'CommonController@allRent');

//续借图书
Route::post('/rerent' , 'CommonController@reNew');

//续借图书验证码
Route::post('/rerent/pic' , 'CommonController@reNewPic');

//同步信息
Route::post('/sync' , 'CommonController@updateInfo');
